﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Configuration;
using ChGK.Data;

namespace CHGK.web.UI.Core
{
    public class CHGKControllerFactory: DefaultControllerFactory
    {
        
        protected override IController  GetControllerInstance(System.Web.Routing.RequestContext requestContext, Type controllerType)
        {
            var controller = base.GetControllerInstance(requestContext, controllerType);
            MEFHelper.Instance.Fill(controller);
            return controller;
        }
    }
}